<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        /* call 可以改变函数内部this关键字的指向 funName.call(obj)*/
        // apply  funName.apply(obj)
        var name="王五"
        var obj = { name:"李四" }
        function go(){
            console.log(this.name);
        }
        go()  // 王五
        go.call(obj) // 李四
        go.apply(obj)
    </script>
</body>
</html>